<template>
	<view>
	  <view class="tpp">
	      <view class="tpdddv">
	         <view class="leftppj">
	            <view class="ftitle">Hi,经销商用户</view>
	            <view class="utdesc">
	              <view>欢迎使用</view>
	              <view>明一退货系统</view>
	            </view>
	         </view>
	         <view class="pirmdd">
	            <image src="https://ayh.wissun.net/static/ayh/dqd/qiehuan.png" mode="widthFix"/>
	         </view>
	      </view>
	      <view class="thresivc">
	          <view class="itemnav" @click="apply"  v-if="userinfo.role > 0">
	            <view class="lefpnnd"><image src="https://ayh.wissun.net/static/ayh/dqd/a1.png" mode="widthFix"/></view>
	            <view>新建申请</view>
	            <view class="lefpnnd2"><image src="https://ayh.wissun.net/static/ayh/dqd/a4.png" mode="widthFix"/></view>
	          </view>
	          <view class="itemnav" @click="my_apply">
	            <view class="lefpnnd"><image src="https://ayh.wissun.net/static/ayh/dqd/a2.png" mode="widthFix"/></view>
	            <view>我的审批</view>
	            <view class="lefpnnd2"><image src="https://ayh.wissun.net/static/ayh/dqd/a4.png" mode="widthFix"/></view>
	          </view>
	          <view class="itemnav"  @click="myapplylog">
	            <view class="lefpnnd"><image src="https://ayh.wissun.net/static/ayh/dqd/a3.png" mode="widthFix"/></view>
	            <view>申请及审批记录</view>
	            <view class="lefpnnd2"><image src="https://ayh.wissun.net/static/ayh/dqd/a4.png" mode="widthFix"/></view>
	          </view>
	      </view>
	  </view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userinfo:{}
			}
		},
		onShow() {
			this.userinfo=uni.getStorageSync("fahuo_username")
		},
		methods: {
			apply(){
			  uni.navigateTo({
				url: '/pages/main/duojifahuo/tuihuoappley/apply',
			  })
			},
			my_apply(){
			  uni.navigateTo({
				url: '/pages/main/duojifahuo/tuihuoappley/myshenlog',
			  })
			},
			myapplylog(){
			  uni.navigateTo({
				url: '/pages/main/duojifahuo/tuihuoappley/index',
			  })
			}
		}
	}
</script>

<style>
.button{
  height: 45px;
  line-height: 45px;
  width: 150px;
  margin: 10px auto;
  text-align: center;
  border: 1px solid #999;
  border-radius: 5px;
}
.tpp{ margin-top: 30px;}
page{
  background-color: #f5f5f5;
}
.ftitle{
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
}
.utdesc{
  font-size: 16px;
  color: #999;
  display: flex;
  flex-direction: column;
  font-weight: bold;
  line-height: 26px;
  padding-left: 20px;
}
.pirmdd{
  width: 90px;
  padding-right: 20px;
}
.pirmdd image{
  width: 100%;
  height: 100%;
}
.tpdddv{
  width: 90%;
  margin: 0 auto;
  display:flex;
  justify-content: space-between;
}
.itemnav{
  display: flex;
  height: 80px;
  line-height: 80px;
  background-color: #fff;
  margin:20px;
  padding: 15px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
}
.lefpnnd{
  width: 90px;
}
.lefpnnd image{
  width: 100%;
}
.lefpnnd2{
  width: 40px;
  position: absolute;
  right: 10px;
}
.lefpnnd2 image{
  width: 100%;
  position: relative;
  top: 10px;
  right: 23px;
}
</style>
